<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>后台管理 - 易买网</title>
<link type="text/css" rel="stylesheet" href="../css/style.css" />
	<style type="text/css">
		.page {
			width: 96%;
			margin: 0px auto;
			font-size: 17px;
		}

		.pageTop {
			width: 100%;
			height: 45px;
			line-height: 45px;
			background-color: #f2f2f2;
		}

		.pageTop span {
			margin-left: 15px;
		}

		.pageTop a {
			color: #3695cc;
		}
	</style>
</head>
<body>

<div class="pageTop">
	<div class="page">
		<img src="../images/admin/coin11.png" /><span><a href="../manage/index.html" target="_top">首页</a>&nbsp;-&nbsp;-</span>&nbsp;新闻管理
	</div>
</div>

<div class="main">
		<div class="manage">
			<form action="../userVisitAddServlet" method="post">
				<table class="form">
					<tr>

						<td class="field">用户Id：</td>
						<td><input type="text"  maxlength="10" required  class="text" name="userName" onkeyup="this.value=check(this.value)"/></td>
					</tr>
					<tr>
						<td class="field">用户名：</td>
						<td><input type="text"  maxlength="10" required  class="text" name="name" onkeyup="this.value=check(this.value)"/></td>
					</tr>
					<tr>
						<td class="field">密码：</td>
						<td><input type="text"  maxlength="20" required  class="text" name="password"/></td>
					</tr>
					<tr>

						<td class="field">性别：</td>
						<td><input type="radio"  name="sex" value="T" checked/>男 <input type="radio" name="sex" value="F" />女</td>
					</tr>
					<tr>
						<td class="field">出生日期：</td>
						<td>
							<input type="date" required name="birthday">
						</td>
					</tr>
					<tr>
						<td class="field">身份证号：</td>
						<td><input type="text"  maxlength="60" required  class="text" name="idnumber"/></td>
					</tr>
					<tr>
						<td class="field">家庭地址：</td>
						<td><input type="text"  maxlength="200" required  class="text" name="address"/></td>
					</tr>
					<tr>
						<td class="field">手机号码：</td>
						<td><input type="text"  maxlength="11" required  class="text" name="mobile"/></td>
					</tr>

					<tr>
						<td class="field">邮箱：</td>
						<td><input type="text"  maxlength="80" required  class="text" name="email"/></td>
					</tr>
					<tr>
						<td class="field">是否为管理员：</td>
						<td><input type="radio"  name="status" value="2"/>是 <input type="radio" name="status" value="1" checked />不是</td>
					</tr>
					<tr >
						<td><label class="ui-blue"><input type="submit" name="submit" value="添加" /></label></td>
					</tr>
				</table>
			</form>
		</div>
		</div>
<script>
	function check(str){
		var temp=""
		for(var i=0;i<str.length;i++)
			if(str.charCodeAt(i)>0&&str.charCodeAt(i)<255)
				temp+=str.charAt(i)
		return temp
	}

</script>
</body>
</html>
